FROM java:8
VOLUME /tmp
ADD kubernets-svc-test-1.0-SNAPSHOT.jar myapp.jar
RUN bash -c 'touch /myapp.jar'
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 1088
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/myapp.jar"]

